-- GENERATED SPELL FOR [Gogger Geomancer] --


function spell0_11917(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11917', 3000, 1)
end

function spell1_11917(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(11990,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11917', 9000, 1)
end

function Sorts_11917(pUnit, Event)
local choix_sorts_11917 = math.random(0, 1)
if choix_sorts_11917 == 0 then
pUnit:RegisterEvent('spell0_11917', 1, 1)
end
if choix_sorts_11917 == 1 then
pUnit:RegisterEvent('spell1_11917', 1, 1)
end
end

function mob11917_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11917', math.random(1500, 3000), 1)
end

function mob11917_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11917_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11917_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11917, 1, 'mob11917_Action')
RegisterUnitEvent(11917, 2, 'mob11917_Leave')
RegisterUnitEvent(11917, 3, 'mob11917_Kill')
RegisterUnitEvent(11917, 4, 'mob11917_Die')
